<template>
    <el-carousel
        :class="`banner ${data.class.radius} ${data.class.shadow==1 ? 'shadow':''}`"
        :height="data.style.height+'px'"
        :style="{'margin-bottom': data.style.margin_bottom+'px',
         'margin-left':data.style.margin_x+'px', 'margin-right': data.style.margin_x+'px',
         'height':data.style.height+'px'}"
    >
        <el-carousel-item v-for="(li,index) in data.list" :key="index"
                          class="banner_item">
            <img class="img" :src="li.image"/>
        </el-carousel-item>
    </el-carousel>


</template>

<script setup lang="ts">
const props = defineProps<{
    data: any
}>()
</script>

<style scoped lang="scss">
@use "src/views/site/diy/style.css";
</style>
